
public class CamionCiterne extends Camion {
	
	public CamionCiterne(String s, float c) {
		super(s, c);
	}
	

	static protected float chargeMax = 10;
	static protected float poidsAVide = 3;
	
	
	public float vitesse() {
		if(charge > 4)
		{
			return 80;
		}
		else if(charge > 1)
		{
			return 90;
		}
		else if(charge > 0)
		{
			return 110;
		}
		else
		{
			return 130;
		}
	}
	

	public String toString() {
		return super.toString()+"\n\tPoids : "+poidsAVide+"+"+charge+"\n";
	}
}
